package com.hzlj.position.locate.common.dto.position;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author lifh
 * @date 2023/5/25 13:59
 **/

@Data
@Accessors(chain = true)
@NoArgsConstructor
public class PositionKeyDTO {
    private String id;
    private Date positionTime;
    /**
     * 附加字段，key中不需要这个字段
     */
    private String jgCode;

    public PositionKeyDTO(String id,Date positionTime){
        this.id=id;
        this.positionTime=positionTime;
    }
    public PositionKeyDTO(String id,Date positionTime,String jgCode){
        this.id=id;
        this.positionTime=positionTime;
        this.jgCode=jgCode;
    }
}
